<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="10" />
    <title>我的奖金</title>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/reward.css?v=201705230001">
    <include file="Public/common_js"/>
</head>
<body class="bg-white">
<div class="shop-index-container">
    <div class="curpos">
        <i class="mark"></i>{$data.bonusInfo.local_name}
    </div>
    <div class="user-box">
        <div class="info">
            <div class="row-h">
                <img src="<empty name = "data.bonusInfo.logo">__PUBLIC__/Home/images/userPic.png<else/>{$data.bonusInfo.logo}</empty>" class="uicon"/>
                <div class="desc">
                    <span class="uname">{$data.bonusInfo.nickname}</span>
                    <span class="ptime"><empty  name="data.bonusInfo.end_time"><b>暂未生成海报</b><else/>海报有效期至：{$data.bonusInfo.end_time}</empty></span>
                </div>
            </div>
            <div class="row-b">
                <a class="one-col" href="{:U('Member/rewardHistory', ['local_id' => $data['bonusInfo']['local_id']])}">
                    <i class="tit">{$data.bonusInfo.current_bonus}</i>
                    <i class="tip">可用奖金</i>
                </a>
                <a class="one-col" href="{:U('Member/rewardWait', ['local_id' => $data['bonusInfo']['local_id']])}">
                    <i class="tit">{$data.bonusInfo.wait_bonus}</i>
                    <i class="tip">待收奖金</i>
                </a>
            </div>
        </div>
    </div>
    <div class="op-nav">
        <a href="{:U('Member/createPoster', ['local_id' => $data['bonusInfo']['local_id']])}"><i class="icon post"></i>生成专属海报</a>
        <a href="{:U('Member/rewardInvite', ['local_id' => $data['bonusInfo']['local_id']])}"><i class="icon friend"></i>我的朋友（{$data.bonusInfo.friend_num}）</a>
        <a href="{:U('Member/rewardHistory', ['local_id' => $data['bonusInfo']['local_id']])}"><i class="icon his"></i>奖金历史记录</a>
        <a href="{:U('Member/rewardRule', ['local_id' => $data['bonusInfo']['local_id']])}"><i class="icon rule"></i>奖金规则</a>
    </div>
</div>
<script type="text/javascript">
    require(['base']);
</script>
</body>
</html>